import React from 'react'
import {Navigate} from 'react-router-dom'
function Lanlogin(Com) {
    const token = localStorage.getItem('token')
    return function(){
        if(!token){
        <Navigate to="/login"></Navigate>
    }else{
        return <Com></Com>
    }
    }
    
}

export default Lanlogin
